package com.autoai.nginx.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by 赵奎 on 2019/6/5 15:42.
 */

/**
 *wecloud自动发布需要这个检测服务
 */
@RestController
public class CheckHealthController {
    @ResponseBody
    @RequestMapping(value = "/health")
    public Object getReportingData(HttpServletRequest request) {
        // "status": "UP"
        Map<String, String> result = new HashMap<>();
        result.put("status", "UP");
        return result;
    }
}
